﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Service;
namespace 企业门户.Controllers
{
    public class HomeController : Controller
    {
        ArticleService articleService = new ArticleService();

        // GET: Home
        //首页
        public ActionResult Index()
        {
            //网站公告
            ViewBag.WZGG = articleService.SelectTops(1, 8);
            //产品中心，定制服务，成功案例
            ViewBag.CpZX = articleService.SelectTops(2, 6);
            ViewBag.DZFW = articleService.SelectTops(3, 6);
            ViewBag.CGAL = articleService.SelectTops(4, 6);

            return View();
        }


        protected override void Dispose(bool disposing)
        {
            articleService.Dispose();
        }
    }
}